package com.guocheng.modules.emp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guocheng.modules.emp.model.po.Emp;
import com.guocheng.modules.emp.model.vo.EmpVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.thymeleaf.expression.Ids;

import java.util.List;

@Mapper
public interface EmpDao extends BaseMapper<Emp> {

    /**
     * 根据用户id查询照片信息
     * @param id
     * @return
     */
    List<String> selectPhotosById(@Param("id")int id);

    /**
     * 根据部门ids查询人员信息
     * @param empVo 封装
     * @return
     */
    List<Emp> selectByDepts(@Param("empVo") EmpVo empVo);
}
